home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 April / macformat-023.iso / Shareware City / Developers / NeoPersist 3.0.8 folder / NeoIncludes / CNeoApp.h next >
Encoding:
C/C++ Source or Header  |  1994-10-13  |  1.0 KB  |  41 lines  |  [TEXT/MMCC]

  1. /*****
  2.  * CNeoApp.h
  3.  *
  4.  *    Application class for a typical application.
  5.  *  Copyright © 1992-1994 NeoLogic Systems.  All rights reserved.
  6.  *
  7.  *****/
  8. #pragma once            /* Include this file only once */
  9. #ifndef __CNeoApp__
  10. #define __CNeoApp__
  11.  
  12. #include <Processes.h>
  13. #include CNeoAppBaseH
  14.  
  15. class CNeoApp : public CNeoAppBase
  16. {
  17. public:
  18.                         /** Constructors / Destructors **/
  19.                         CNeoApp(const OSType aSignature, const OSType aType);
  20.     void                INeoApp(void);
  21.     virtual                ~CNeoApp(void);
  22.  
  23.                         /** Execution Methods **/
  24.     virtual void        getAppName(Str255 aName) const;
  25.     virtual short        getAppVersion(char *aData) const;
  26.     virtual Boolean        isFrontProcess(void) const;
  27.  
  28.                         /** Chore Methods **/
  29.     virtual void        addChore(CNeoChore *aChore);
  30.     virtual void        doChores(void);
  31.     virtual void        removeChore(CNeoChore *aChore);
  32.  
  33.                         /** Purge Methods **/
  34.     virtual Boolean        purgeCache(long aNeeded);
  35.  
  36.     static long            FNumWindowsOpen;        // The number of windows open
  37.     static ProcessSerialNumber
  38.                         FPSN;                    // This application's psn
  39. };
  40. #endif
  41.